package edu.berkeley.cs160.prog1;
//width 320dp. 320/3 = 107.  105,110,105

import android.app.Activity;
import android.content.Intent;
import android.view.View.OnClickListener;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class LevelSelectionActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
	private Button left_button;
	private Button middle_button;
	private Button right_button;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_view);
        
        left_button = (Button)findViewById(R.id.button1);
        middle_button = (Button)findViewById(R.id.button2);
        right_button = (Button)findViewById(R.id.button3);

        left_button.setOnClickListener((android.view.View.OnClickListener) this);
        middle_button.setOnClickListener((android.view.View.OnClickListener) this);
        right_button.setOnClickListener((android.view.View.OnClickListener) this);

    }

	public void onClick(View v) {
		switch(v.getId()) {
			case R.id.button1:
				
				break;
			case R.id.button2:
		    	Intent myIntent = new Intent(v.getContext(), RestaurantActivity.class);		//create a new activity!!@@@@@
		        this.startActivity(myIntent);		//start a different activity!!!!!!@@@@@
				break;
			case R.id.button3:
				
				break;
			default:
				break;
		}
	}
}